package com.ybkj.o2o.zhuanxian.manager;

import com.ybkj.o2o.zhuanxian.common.DataGrid;
import com.ybkj.o2o.zhuanxian.entity.Car;

import java.util.List;

public interface CarManager {

  Car create(Car car);

  Car findByEmploy(Long employId, String appKey);

  void update(Car car);

  Car findOne(Long carId, String appKey);

  void delete(Long carId, Long[] lineId, String appKey);
//  void delete(Long carId, String appKey);

  DataGrid<Car> findByParam(Long lineId, String lineName, Long companyId, String companyName,
      String carName, String carNumber, Integer[] status, Long employId, String employName,
      Integer page, Integer rows, String appKey);

  List<Car> findBycarNumber(String carNumber, String appKey);

  Car findByNumber(String carNumber, String appKey);

  Car queryCarByNumber(String carNumber, String appKey);
  
  int updateEmployIdToNull(Car car);


}
